import Axios from "@/axios";


export async function login(data:Login.loginUser) {
    return Axios.post<Login.token>({
        url:'/base/doLogin',
        data
    });
}

export async function captchaImage(){
    return Axios.get<Login.captchaImage>({
        url:'/base/captchaImage'
    })
}


export async function logOut(){
    return Axios.get<void>({
        url:'/base/doLogout'
    })
}



export async function test(){
    return Axios.get<string>({
        url:'/base/test'
    })
}